018 exercise example
产生持续平衡的简单逻辑。
A simple logic to generate continuous balance.
好的。
OK.
现在,如果您可以从上一课中想到您已经使用上一课中的一些命令来生成连续脉冲,那么如果您想自己尝试,您可以通过视频尝试论文中的逻辑。
Now if you can think of from your last lessons you have learned using some commands from the last lessons to generate continuous pulses so if you want to try it yourself you can pass the video try the logic in your paper.
否则我会告诉你结果。
Otherwise I'm going to show you the result.
因此,在这种情况下,最新的解决方案首先是我们在这里所做的,我们正在获取输入的正边缘。
So the latest solution first in this case what we have done here we are taking a positive edge of the input.
您也可以采用不带正值的正常输入,但我们必须这样做,因为我们想要生成连续的姿势。
You can also take a normal input without positive it but positive as we have to because we want to generate continuous poses.
所以我们要做的是,如果你看到这个逻辑,那么我们就采取这只是让我们从基础开始。
So what we're going to do is if you if you see this logic then we take and that's just from let's start from the basic.
因此,如果我在这里打开我的输入,那么我会打开已经在这里的第一个输入。
So if I turn on my input here OK I turn on my first input which is already here.
这会给我脉搏。
This will give me a pulse.
好的,这个脉冲从这里到这里。
OK for this pulse go from here to here.
正如我告诉你的,这个 TPD 非常适合生成输出。
And as I told you this TPD quite a to generate the output.
输出将持续一秒钟。
The output will be on for one second.
好的。
OK.
之所以会这样,是因为给定的时间再次出现,而这次是在这里给定的。
It goes because the time given is once again and this time is given here.
所以我会把它放一秒钟,但这里发生了一些事情。
So I'll put it on for one second but something is happening here.
那么那是什么。
So what is that.
那么我们来看看地址吧。
So let's see the address.
这个地址与这个地址相同,所以如果你打开它,你就会在外面有一个按钮。
This address is same as this address so if you turn it on you you have a button outside.
所以这将会持续下去。
So this will be on so be continuously on.
好的。
OK.
这意味着这是按顺序传递标志性动作。
It means this is passing the signature move in order.
这里它的输出 Q 为 0.0 的下降沿。
Here it has a negative edge of the output Q 0.0.
这与此输出相同。
This is the same output as this one.
好的。
OK.
那么就让我再承受一次痛苦吧。
So let me take another pain.
那么,一旦它在这个边缘下车,一旦它下车,将会发生什么。
So what's going to happen once this get off at this edge once this get off.
你有从这里到这里的信号。
You have the signal from here to here.
这一次就让我放弃了。
This give me up once.
如果你注意到消极的一面,如果你注意到消极转变中的教训,这会让我兴奋不已。
If you notice the negative if you notice the lesson in the negative transition this will give me the buzz.
一旦该地址,该输出就会关闭。
Once this address this output goes off.
所以在脉冲完成的那一刻,我这里有一个脉冲。
So at this instant when the pulse is complete I have a pulse here.
好的。
OK.
现在这条总线转到我的另一个 ATP 计时器,配置为 1 秒,等于 2000 毫秒,不会生成 1 秒的脉冲。
Now this bus goes to my other ATP timer configured with one second which is equal in 2000 milliseconds doesn't generate a pulse of one second.
好的。
OK.
因此,一旦铃声响起,这又是负面边缘。
So once this bell goes off this is again negative edge.
一旦这种情况发生,让我采取另一个指针,因为我使用的是负触发。
Let me take another pointer once this goes off because I'm using negative trigger.
现在只需根据上次操作结果的正或负逻辑关闭或低电平给我一个脉冲。
Now just give me a pulse based on positive or negative logic off or low the result of last operation.
好的。
OK.
所以一旦这一次它响起,这会给我带来嗡嗡声,这将再次进入我的 T.P.
So once this time it goes off this would give me a buzz which will again go to my T.P.
并且它会产生另一种力量。
and it will generate another power.
凯特,这听起来可能令人困惑,所以让我们再听一下声音。
Kate it may sounds confusing so let's listen to sound again.
任何你有的想法都不是。
Anything you have about an idea don't you.
而你有这个距离。
And you have this distance.
这也是事实。
This is true as well.
和这个一起,这让我很兴奋。
Along with this one so this give me a buzz.
但这一直就OK。
But this is continuously on OK.
这是为了这个。
This is on for this.
由于 t.p,我将在一秒钟内开始我的第一次嗡嗡声。
I'll start my first buzz off one second because of the t.p.
现在,当这只鸟有灯的负边缘时,因为我们使用负触发器。
Now when this bird has a negative edge of the lamp because we use a negative trigger.
这给我带来了另一种嗡嗡声,产生了另一个一秒脉冲 ATP,并通过此 t.p 的资助,将此负片作为礼物和其他权力打开我的电视。
This give me another buzz which generate another one second pulse ATP and with the funding of this t.p this negative as gifts and other powers to turn on my TV.
好的。
OK.
现在,当计时器继续计时时,会再次生成一秒脉冲。
Now again when the timer goes on this generate another one second pulse.
再次,随着脉冲的负边沿,我们在这里有另一个负边沿激活,这会在手术和其他论文中产生其他涟漪,并且这种情况会一直持续下去。
And again with this negative edge of pulse we have another negative edge activation here which creates and other ripples it surgeries and other papers and this keeps going on and on.
这会一直循环下去,除非我的开关关闭。
This is keep going on and on in a loop unless my switch goes off.
好的。
OK.
所以这是一个循环,因此它将不断生成钱包,一秒钟打开一秒钟关闭一件事,然后打开一件事,这就是它的情况。
So this is a loop so it will keep generating the purses of one second on and one second off one thing and on and one taken out this is how it goes.
如果你想改变后时间这是脉冲的接通时间。
And if you want to change the post-time This is the ontime of the pulse.
你可以从这里改变。
You can vary from here.
这是上班时间,这是下班时间,您可以从此处更改。
This is the ontime and this is the off time that you can vary from here.
这是关闭时间,因为这是下一个脉冲的延迟。
This is the off time because this is a delay for the next pulse.
所以这次在这里可以通过电视定时器预设时间来改变。
So this time over here this can be varied by this by this TV timer preset time.
所以你可以说这是一种殴打和信号。
So that's you can say that it's a kind of beat up and signal.
您可以改变开启时间和关闭时间,并且可以生成脉冲。
You can vary your on time and off time and you can generate a pulse.
好的。
OK.
因此,让我们看看这个操作,如果可以的话,您可以在逻辑中模拟相同的操作。
So let's see this operation in let it out if you can you can simulate the same operation in logic.
因此,让我回到我的逻辑,以便他们也可以修改这个逻辑。
So let me go back to my logic here so they can modify this logic as well.
好的。
OK.
因此,在大纲中,我们对此的看法往往是我的输入,我可以提供记忆。
So in the outline what we have on this was arising it tends to be my input and I can give a memory.
可能是 100,不是吗?
It could be 100 don't you.
好吧,你没有在这里给出任何内存地址。
OK you didn't give any memory address here.
所以这里我们需要与此相同的地址。
So here we need the same address as this one.
所以我会简单地打字,不是吗?
So I will type easy don't you.
好的。
OK.
现在,一旦启用,我们需要输出的负边沿为负 h。
Now once this is on now we need a negative edge of my output to negative h.
所以你可以从这里得到它,我的负相同输出使用你做的不是吗。
So you get it from here my negative same output use you do don't you.
而我的地址是一百美元一张。
And the address I am one hundred dollar one.
现在我们需要另一个电视定时器这个来自这里并且有另一个数据库我可以给T.P.
Right now we need another TV timer This comes from here and has another database which I can give T.P.
到。
to.
好的。
OK.
时间是现在的时间。
Time is the present time.
我又可以给他钱了。
Once again I can give him the money.
好的。
OK.
现在我们需要一个负向过渡。
Now we need a negative transition.
所以它是采取的,因为我们之前需要所有这些出价的负数,所以不会采取负数开盘和激励克里格在这里采取负信号并给他们 100 入场。
So it is take because we need a negative of all these bids before so it will not take the negative open and incentive to take a negative signal Crigger over here and give them 100 entry.
这就是像这样连接到我的。
And this is CONNECT TO MY like that.
所以你可以这样看。
So you can see it like this.
所以这是同样的逻辑。
So that's the same logic.
让我从演示文稿中非常精细地输入负 HTP 负触发,这样我就不会不匹配。
Let me just very fine input negative HTP negative trigger from the presentations so that I should not mismatch.
它需要这样做。
It would need to do that.
好的。
OK.
一切看起来都很好,所以我们不要运行这个逻辑,看看它是如何工作的。
Everything looks fine so let's don't run this logic and have a look how does it work.
编译代码。
Compiling code.
如果我们将 on time 更改为足够的时间以生成大约 12 个不同的您知道的持续时间,我们还可以看到该示例。
We can also see the example if we change the on time enough time to generate about 12 different different you know time duration.
逻辑是不知道我们可以这样说。
The logic is don't know that we can put it like this.
餐饮服务商可以看到启动情况。
Caterer's you can see the actuation.
因此,一旦我打开输入零暗零,您就可以看到脉冲打开和关闭。
So once I turn on my input zero dark zero you can see the pulses on and off.
这是一个连续脉冲。
This is a continuous pulse.
现在尝试理解这一点。
Now try to understand this.
这才刚刚开始循环。
This just started the loop.
这样的情况还在继续。
This goes on.
当这个值变为 0.0 时,您会出现负面反应,此时会分散。
And when this goes off 0.0 you have a negative response here disperse.
启动另一个计时器一秒钟。
Initiate another timer for one second.
我们再次从这里得到另一个脉冲驱动。
Once again we have another pulse actuation from here.
正如我所解释的。
As I explained.
好的,我希望这非常简单,如果您想在灯上显示任何错误的闪烁操作,您可以为您的任何应用程序复制此逻辑,您可以使用此逻辑。
Ok I hope this is pretty easy and you can duplicate this logic for one if any of your application if you want to display some blinking operation on your light for any error you can use this logic.
现在,有时发生的事情你知道眨眼有很多不同的含义。
Now sometime what happened you know the blinking has many different meanings.
假设该输入已打开。
Suppose that this input is on.
这是闪烁一秒亮一秒灭。
This is getting a blinking of one second on and one second off.
您可以使用桨电路来显示相同的 Elodie 相同的输出,但闪烁的效果不同。
You can use a paddle circuit to display the same Elodie same output but the blinking great is different.
你可以知道这是对的。
You can know that is right.
您只需通过另一个输入更改此 BT 时间即可做到这一点。
All you can do that by just changing this BT time by another input.
这将在后面的练习中看到如何在实时操作中更改这个时间。
This is seen in the later exercise how you can change this time in realtime operation.
现在让我们改变一下这个时间,看看它对系统有何影响。
And now let's just change this time and see how does it affect the system.
因此,我将把这个准时时间设为一秒,并将这个关闭时间更改为两秒。
So I'm going to take this on time as one second and I'm changing this off time two seconds.
这可以。
This is fine.
不要再这样做,因为我们正确更改了参数。
Don't do this again because we change the parameters right.
是的,看看区别。
Yes and see the difference.
现在我桌上的这个设备关闭了两秒钟,然后才再次打开。
Now this is on my desk is off for two seconds before it gets on again.
我们刚来是啊。
We just had just come yeah.
这就是它产生影响的方式。
So this is how it makes a difference.
开启一秒或关闭两秒。
This is on for one second off or two seconds.
但这是一种可定制的调制。
But this is a kind of customizable with modulation.
虽然这是您可以用一个命令完成的调节,但如果您想生成您不能使用这种逻辑。
Although this is moderation you can do with one command but if you want to generate You can't use that kind of logic.
这就是我们在 t.p. 中看到的情况。
So this is what we have seen in t.p.
让我们看看我们还有什么。
Let's see what we have further.
是的,还有一件事很好。
And yeah one more thing that's good.
你知道的魔力,如果我关闭我的输入,如果我关闭我的输入,他们将不会有这个。
The magic you know if I turn off my input if I turn off my input they will not have this.
该位将关闭,我们将不会有循环,因此循环将是死循环。
This bit will be off and we will not have a loop so the loop will be dead.
那么让我们来看看吧。
So let's have a look.
我关闭我的输入让恶魔知道,并且不会有任何进一步的部分,因为狼疮没有做任何应该循环的事情。
I turn off my input let the demon know and there'll be no there will not be any parts further because the lupus did not do any should the loop.
我这里需要脉搏。
I need a pulse here.
因此,如果我再次打开输入,闪烁就会开始。
So if I turn on my input again the blinking will start.
我打开了输入,又关闭了输入。
I turned on my input and I turned off my input.
日志已经死了。
The log is dead.
好的,如果我再次打开我的输入 Mukhlas,如果我将其关闭。
OK if I turn on my input again Mukhlas that if I turn it off.
没有人这样做。
Nobody did.
这就是您如何创建自己的定制逻辑的区别。
So that's the difference of how you can create your own customized logic.
所以,是的,如果您想查看相同的 FBD 解决方案,您只需将解决方案从字母更改为其他解决方案即可。
So yeah if you want to see FBD solution of the same you just have to just change your solution from letter to have otherwise.
否则,如果您注意到这些信号。
Otherwise if you notice the signals.
这与你在经济上的繁荣几乎是一样的。
That's pretty much the same financially you have a buzz.
这实际上是添加一只 TB 来提高你的 Peetie 一只。
Which is actually adding a TB one to raise your Peetie one.
你的皮蒂就在这里。
Your Peetie one is here.
你知道它就在这里。
You know it's here.
所以BT一个有来自P的信号和来自这个这个循环的信号。
So BT one has signal coming from P and signal coming from this this this loop.
好的,这有一个命令门驱动,有两个输入,所以这是 P。
OK so this has an order gate actuations that is has two inputs so this is the P.
所以这里的输入就是这里的输入。
So this input over here that is the input are here.
好吧,尽管逻辑是在这里创建的。
OK now this despite the logic is created here.
那么这是怎么发生的呢。
So how is that happening.
最初,您要么拥有该版本,要么拥有 2.0。
Initially you have either that or 2.0 here.
所以这部分就到这里了。
So this part is here.
这是我读过的和其他负面的 H.
This is and I'd read and other negative H.
K 所以这个负边沿来自这里。
K so this negative edge is coming from here.
这是负转换,但输入被添加并提供给定时器。
This is negative transition but the inputs are added and given to the timer.
所以这不是一个手术。
So this isn't an operation.
它将进入计时器,所以这次就在这里。
It's going to the timer so this time it is here.
你有与这个相同的PD,并且它的时间输出将成为负触发。
And you have the same PD as this one and the output of time it is going to a negative trigger.
因此,该输出将进入负触发,负触发将再次进入 P-T。
So this output is going to negative trigger and the negative trigger is going to P-T once again.
因此,它的输出将遵循该启动脉冲的奇数逻辑,并且将遵循 P-T 1,而与 Edye 1 相反的输出将遵循这一规律。
So its output is going to the odd logic of this of this start pulse and it's going to P-T one and the opposite of Edye one is going to do that I'm this is the law.
因此,如果您没有自动功能,甚至可以在写给 FPD 的信中做到这一点,那么这非常容易,并且当您以这种方式理解逻辑时,您可以在一封信中进行设计并配合该信。
So it's pretty much easy even you can do it in a letter to FPD if you don't have an automatic and well when you get to understand the logic this way you can design in a and going with that letter.
由你决定。
It's up to you.
软件有这个选项。
The software has this option.
好的。
OK.
那么让我们继续前进,我们有另一个逻辑。
So let's move ahead and we have another logic.
这非常简单,并且允许您在两个输出处生成善意脉冲输出。
This is pretty much easy it's easy and that allows you to generate kindness pulse output at two outputs.
现在使用它或两个并用你认为脉搏的眼睛在一秒钟内获得它或一个。
Now use it or two and get it or one with eyes that are you consider pulse and at one second.
因此,在这种情况下,我们仅在一个输出上的两个输出处生成输出。
So in this case we are generating output at two outputs on just one.
那么这是怎么回事就更容易理解了。
So how that could be it's much more easy to understand.
所以我在这里解释一下。
So I will explain it here.
同样,输入端有一个启动脉冲,因此这将启动我的计时器一秒钟,输出将打开一秒钟。
Again you have a start pulse at input so this will actuate my timer for one second and output will be on for one second.
好的。
OK.
现在,我们有一个输出的负边缘需要克服,稍后会出现在这里,并且开始也在这里。
Now here we have a negative edge of output to overcome that come here later and the start is here as well.
因此,如果这是开启的,这将是你的责任,这将超出你必须让你必须一直打开它。
So this will be on you if this is on this will beyond you have to make you have to turn this on all the time.
好的。
OK.
现在这里我们有一个该输出到该输出的负像。
Now here we have a negative image of this output to this output.
当此输出打开和关闭时,此时您将在此处产生此脉冲,它将再次生成输出和计时器一秒钟,因为时间又到了。
When this output is on and when it is off at this point at this point you have this pulse here which will generate the output and the timer for one second again because the time is once again.
因此输出会持续一秒钟,依此类推。
So the output is on for one second and so forth.
它打开一秒钟,然后立即打开一秒钟,然后关闭,因为这很遗憾。
This was on for one second then immediately this will be on for one second and this will be off because this is a pity.
因此,一旦计时器关闭,我们就会再次处于劣势。
So once this is off the timer after once again here we have a negative edge.
所以这会再次在此处产生暂停,这次它将向上并且将打开。
So this will again generate a pause here and this time it will be on the up and will be on.
一旦这个输出再次响起,警察就会过来。
Once this output goes off again the police come here.
如果它打开并再次关闭,它开始的时间会很奇怪。
The time it starts that would be odd if this is on and gets off again.
再次确定。
Again just to be sure.
所以你在这里注意到的是我们的输出都有一个负边缘。
So what you what you are noticing here is we have a negative edge off both the output.
这是我输出的负边缘。
This is a negative edge of my output.
你听说过,没有一个。
You've heard it not one.
这是我对制作人的负面形象。
This is a negative image of my producer that I do.
因此,这两个舷外机在飞行员的另一个输入中具有负 H。
So these two outboards have the negative H in the pilot rang off another input.
好的。
OK.
这形成了一个循环,看起来就是这样,读起来就违反了法律。
Which makes a loop that's how it looks and read it and to break the law.
我们有这个输入。
We have this input.
因此,如果我关闭输入,一旦它消失,它就会死在这里。
So if I turn off my input once this goes off this will just die here.
它不会通过,因为这将关闭,因为它位于同一地址。
It will not pass because this will be off because this is at the same address.
因此,要获得循环,您必须关闭输入。
So to get the loop you have to turn off your input.
您应该关闭循环,输出将关闭。
You should turn off the loop and the outputs will be off.
好的。
All right.
所以我有很多,我不会在很大程度上模拟它,因为这作为我们的最后一个逻辑非常简单,但当然我们将在我们的一个工厂应用程序中使用这个 Peetie 来向您展示 Peetie 的实时应用程序。
So I have a lot I'm not going to simulate this largely because this is pretty much easy as our last logic but of course we'll be using this Peetie in one of our factory application to show you a real time application of Peetie.
好的。
OK.
这是关于皮蒂的。
So this was about Peetie.
如果您有任何疑问,可以提出任何评论。
And if you have any doubt you can put any comments.
让我们回顾一下这个杰森。
Let's review this Jason.
好吧,这与 FBD 中的解决方案相同,您可以比较并从后面的逻辑中了解它是如何实现的。
All right this is the same solution in FBD you can compare and see how this has been what it from later logic.
那么我们学到了什么,您可以使用 PD 定时器来生成脉冲并设置程序持续时间的输出队列(即 BT)。
So what did we learn you can use PD timer to generate pulse and to set the output queue for program duration which is a BT.
那么,当指令以输入从 0 到 1 的逻辑运算结果启动时,您将在该 Pudu 上打开的 PD 中投入多少时间。
So how much time you put in the PD that would be on for that Pudu the time the instruction is started with the result of logic operation in input from 0 to 1.
所以这是一个积极的信号。
So this is a positive signal.
当逻辑从 0 到 1 时触发,此时只有 PDV 被激活并在程序上输出。
It's triggered when the logic is from 0 to 1 then only PDV to be activated and output would be on the program.
当指令向外开始时,这一切就开始了。
That begins when the instruction starts outward.
Q 设置为 P-T 持续时间,无论输入的后续 Gersh 是否表示“OK”,这非常清楚我们所讨论的内容以及 Petey 到达的持续时间和信号在输入中保持为零且 E-D 输出被重置的情况。
Q Is set for the duration P-T regardless of the subsequent Gersh of the input saying OK this is pretty much clear what we have discussed and the duration Petey's reach and the signals stayed in the input at zero that E-D output is reset.
因此,这意味着当 P-T 完成且输入为零时,输出将重置。
So this means when P-T is completed and the input is zero the output is reset.
任何输入阶段的所有 EDV 都取决于您在下一个周期中的声音是否为零。
All that EDV a lot to come to the phase of any input is if you're an audible to be zero in the next cycle.
这就是关于 P-T 计时器的全部内容,如果您还想要一份副本,您可以在课程中找到它。
So this is all about P-T timers and if you want a copy of this was in addition you'll find it in the course.
太感谢了。
Thank you so much.
我们下一课见。
I'll see you in the next lesson.